package cn.ibizlab.odoo.core.odoo_hr.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_hr.domain.Hr_expense;
import cn.ibizlab.odoo.core.odoo_hr.filter.Hr_expenseSearchContext;

/**
 * 实体[Hr_expense] 服务对象接口
 */

public interface IHr_expenseService{
     void updateBatch(List<Hr_expense> hr_expenses, int batchSize) ;
     boolean update(Hr_expense hr_expense) ;
     boolean remove(Integer id) ;
     Hr_expense get(Integer id) ;
     Hr_expense get(Hr_expense hr_expense) ;
     void createBatch(List<Hr_expense> hr_expenses, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean create(Hr_expense hr_expense) ;

    /**
     * 查询集合 默认查询
     */
    Page<Hr_expense> searchDefault(Hr_expenseSearchContext context) ;

    /**
     * 根据科目查询
     */
     Page<Hr_expense> selectByOdoo_account(Integer id) ;

    /**
     * 根据分析账户查询
     */
     Page<Hr_expense> selectByOdoo_analytic_account(Integer id) ;

    /**
     * 根据员工查询
     */
     Page<Hr_expense> selectByOdoo_employee(Integer id) ;

    /**
     * 根据费用报表查询
     */
     Page<Hr_expense> selectByOdoo_sheet(Integer id) ;

    /**
     * 根据产品查询
     */
     Page<Hr_expense> selectByOdoo_product(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Hr_expense> selectByOdoo_company(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Hr_expense> selectByOdoo_company_currency(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Hr_expense> selectByOdoo_currency(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Hr_expense> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Hr_expense> selectByOdoo_write(Integer id) ;

    /**
     * 根据销售订单查询
     */
     Page<Hr_expense> selectByOdoo_sale_order(Integer id) ;

    /**
     * 根据产品计量单位查询
     */
     Page<Hr_expense> selectByOdoo_product_uom(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Hr_expense convert2Domain(cn.ibizlab.odoo.core.client.model.Ihr_expense model ,Hr_expense domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ihr_expense convert2Model(Hr_expense domain , cn.ibizlab.odoo.core.client.model.Ihr_expense model);

}
